package com.sdl.timesblogmp.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sdl.timesblogmp.model.entity.Admin;
import com.sdl.timesblogmp.model.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdl.timesblogmp.model.vo.BlogInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sdl
 * @since 2020-05-11
 */
@Repository
public interface BlogMapper extends BaseMapper<Blog> {
    IPage<BlogInfo> findBlogInfo(IPage<BlogInfo> page,@Param(Constants.WRAPPER) Wrapper<BlogInfo> queryWrapper);
    BlogInfo findOneBlogInfo(Integer id);
}
